#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QApplication>
#include <QMainWindow>
#include <QTextCodec>
#include <QFileDialog>
#include <QPushButton>
#include <QLabel>
#include <QTextEdit>
#include <QMenuBar>
#include <QStatusBar>
#include <QFile>
#include <QTextStream>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QSpacerItem>
#include <QFileInfo>
#include "dialog.h"
//#include "adddialog.h"

class Sru;

class MainWindow : public QMainWindow
{
   Q_OBJECT

private:
   QPushButton *button;
   QPushButton *butlab;
   QLabel *label;
   QTextEdit *term;
   QPushButton *saveb;
   QVBoxLayout *layout;
   QHBoxLayout *layouth;
   QSpacerItem *spacer;



   QMenu *menu;
   QMenuBar *menuBarr;
   QAction *openFAction;
   QAction *openDAction;
   QAction *quitAction;
   QWidget *widget;
   QDir currentDir;


   void createMenus();
   void createStatusBar();

public:
   MainWindow(QMainWindow *parent=0);
   QStringList openfile;
   QStringList opendir;


private slots:
   void foo();
   void openfilesv();
   void opendirv();
   void savev();
   void listoffile();
};

#endif // MAINWINDOW_H
